<?php

namespace app\validate\api\recovery;

use think\Validate;

class regAuthValidate extends Validate
{

    protected $rule = [
        'valid_type'    => 'require',
        'name'          => 'require',
        'idcard'        => 'require|/^\d{17}[\dX]$/',
        'img'           => 'require',
    ];


    protected $message = [
        'valid_type.require'  => 'valid_type证件类型必填',
        'name.require'        => 'name姓名必填',
        'idcard'              => '身份证号码不正确',
        'img.require'         => 'img身份证图片必填',
    ];

}